package com.bysc.commentservice.client;

import com.bysc.commonutils.Results;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component

@FeignClient(value = "service-user",fallback = UserInfoDegradeFeignClient.class)

public interface UserClient {

    //查询用户信息
    @GetMapping("/userservice/user-info/getUserInfoById/{id}")
    Results getUserInfoById(@PathVariable("id") String id);
}